Skip to content

Commit

Permalink
v0.3.2 (flashlight#841)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: flashlight#841

This will be the last release before the Flashlight Tensor framework is merged into master. That merge will contain breaking changes for the entire Flashlight framework.

See the release notes accompanying the release tag for more.

Reviewed By: benoitsteiner

Differential Revision: D34972684

fbshipit-source-id: 00ee3c8bcecb6a91f3cbd6377e008e9929a900ad
  • Loading branch information
jacobkahn authored and facebook-github-bot committed Mar 18, 2022
1 parent e63027e commit 4c322e4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.10)

project(flashlight LANGUAGES CXX C VERSION 0.3.1)
project(flashlight LANGUAGES CXX C VERSION 0.3.2)

include(CTest)
include(CMakeDependentOption)
Expand Down
2 changes: 1 addition & 1 deletion flashlight/fl/autograd/Functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ Variable clamp(const Variable& input, const double lo, const double hi) {
std::vector<Variable>& inputs,
const Variable& gradOutput) {
af::array gradMask = gradOutput.array();
replace(gradMask, (result > lo) && (result < hi), 0);
replace(gradMask, (result > lo) && (result < hi), 0LL);
inputs[0].addGrad(Variable(gradMask, false));
};
return Variable(result, {input.withoutData()}, gradFunc);
Expand Down
2 changes: 1 addition & 1 deletion flashlight/fl/examples/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.10)
project(flashlight-examples LANGUAGES CXX C VERSION 0.3.1)
project(flashlight-examples LANGUAGES CXX C VERSION 0.3.2)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

Expand Down
2 changes: 2 additions & 0 deletions flashlight/fl/tensor/backend/af/ArrayFireBackend.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* LICENSE file in the root directory of this source tree.
*/

#pragma once

#include "flashlight/fl/tensor/TensorBackend.h"

namespace fl {
Expand Down

0 comments on commit 4c322e4

Please sign in to comment.